package com.big.app.controller;

import com.big.app.service.intf.MovieService;
import com.big.app.vo1.R;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * //       @author  GQ
 * //
 * //                .-~~~~~~~~~-._       _.-~~~~~~~~~-.
 * //            __.'              ~.   .~              `.__
 * //          .'//                  \./                  \\`.
 * //        .'//                     |                     \\`.
 * //      .'// .-~"""""""~~~~-._     |     _,-~~~~"""""""~-. \\`.
 * //    .'//.-"                 `-.  |  .-'                 "-.\\`.
 * //  .'//______.============-..   \ | /   ..-============.______\\`.
 * //.'______________________________\|/______________________________`.
 */
@RestController
@RequestMapping("/api/movie/")
@CrossOrigin
@Api(value = "实现电影相关操作",tags = "实现电影相关操作")
public class MovieController {
    @Resource
    private MovieService service;

   @GetMapping("select.do")
   public R select(int type){
        return service.selectByType(type);
    }
}
